package com.tianruan.dc.modules.userinfo.context;

import java.time.LocalDate;
import java.util.regex.Pattern;

public class BaseContext {

    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();



    public static String getCurrentId() {
        return String.valueOf(threadLocal.get());
    }



    // 其他属性和方法
    public static final String DATE_PATTERN = "\\d{4}-\\d{2}-\\d{2}";

    public static boolean isDateValid(String time) {
        return Pattern.matches(DATE_PATTERN,time);
    }



}
